<?php

$config=require basePath('config/db.php');

use Framework\Database;

$db=new Database($config);

$listings=$db->query('SELECT * FROM listing LIMIT 6')->fetchAll();

loadView('home',[
    'listings'=>$listings
]);